package com.woniuxy03;

import java.util.Arrays;

/**
 * @author 作者
 * @create 2025-06-05 15:28
 */
public class Test02 {
    public static void main(String[] args) {
        String str="abjavacdef.gjavacdefgjava.cdefg.jav";
        System.out.println(str.replace(".", "x"));
        System.out.println(str.replaceAll("\\.", "x"));

        str="abja12345vacdefgjavac5678defgjavacde334fgjav";
        System.out.println(str.replaceAll("\\d", "*"));
        System.out.println(str.replaceAll("\\d+", "*"));

        String student="zs.11.男";
        String[] stu = student.split("\\.");
        System.out.println(Arrays.toString(stu));
    }


}
